package org.wisdom.s3.job.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import cn.hutool.json.JSONObject;

/**
 * PeopleCentertoken获取类
 *
 * @author zhangzhiyan
 * @date 2021/07/14 11:35
 **/
@FeignClient(url = "${people-center.url}", name = "PeopleCenterTokenFeign")
public interface PeopleCenterTokenFeign {

    /**
     * 获取 token
     *
     * @author 张智研
     * @date 2023/11/27 16:09
     * @param body 请求参数
     * @return cn.hutool.json.JSONObject
     */
    @PostMapping(value = "/token/getToken", headers = {"Content-Type=application/json; charset=utf-8"})
    JSONObject getToken(@RequestBody JSONObject body);
}